import request from '@/utils/request'

// 查询宣传图列表
export function listAdvertismentpicture(query) {
  return request({
    url: '/miaomiao/advertismentpicture/list',
    method: 'get',
    params: query
  })
}

// 查询宣传图详细
export function getAdvertismentpicture(advertismentPictureId) {
  return request({
    url: '/miaomiao/advertismentpicture/' + advertismentPictureId,
    method: 'get'
  })
}

// 新增宣传图
export function addAdvertismentpicture(data) {
  return request({
    url: '/miaomiao/advertismentpicture',
    method: 'post',
    data: data
  })
}

// 修改宣传图
export function updateAdvertismentpicture(data) {
  return request({
    url: '/miaomiao/advertismentpicture',
    method: 'put',
    data: data
  })
}

// 删除宣传图
export function delAdvertismentpicture(advertismentPictureId) {
  return request({
    url: '/miaomiao/advertismentpicture/' + advertismentPictureId,
    method: 'delete'
  })
}
